package com.lengxf.design;

/**
 * 终结符表达式角色
 * By Lengxf
 */
public class DistanceNode extends AbstractNode {

    private final String distance;

    public DistanceNode(String distance) {
        this.distance = distance;
    }

    @Override
    public String interpret() {
        return this.distance;
    }

}
